CC = gcc
RM = rm -f

WORKSPACE := $(shell pwd)

CFLAGS += -Wall -O3 -std=gnu99

TARGET = test

TARGET_OBJS := $(WORKSPACE)/factory_methods.o

ALL: $(TARGET_SCAN)
	@echo "Compile all"
	@echo "============================="
	./$(TARGET)

$(TARGET): $(TARGET_OBJS)
	$(CC) $^ -o $@ $(LINK_LIBS)

%.o : %.c
	$(CC) $(CFLAGS) -c $< -o $@

clean:
	$(RM) $(TARGET_OBJS) $(TARGET_OBJS)
